home *** CD-ROM | disk | FTP | other *** search
- Path: mother.usf.edu!news
- From: yatesc@csee.usf.edu (Randy Yates)
- Newsgroups: comp.os.ms-windows.programmer.controls,comp.lang.c,comp.lang.c++
- Subject: Getting Text To Display In Win 3.1 Static 3-D Controls
- Date: 26 Mar 1996 01:01:53 GMT
- Organization: University of South Florida
- Message-ID: <4j7fm1$8b7@mother.usf.edu>
- NNTP-Posting-Host: ppp100.cfr.usf.edu
- Mime-Version: 1.0
- Keywords: 3-D,CTL3D
- X-Newsreader: WinVN 0.93.14
-
- I am writing a Win 3.1 program and using 3-D controls directly on the
- client area of my application. I can create
- 3-D radiobuttons just fine. When I create static controls with no
- style attributes (a style of 0), they work fine. When I create static
- controls with a non-zero style, such as SS_GRAYFRAME in order to
- make them have a 3-D outline, the text of the control disappears.
-
- I am trapping WM_CTLCOLOR and WM_SYSCOLORCHANGE messages like so:
-
- case WM_CTLCOLOR:
- hbrush = Ctl3dCtlColorEx(message, wParam, lParam);
- if (hbrush)
- {
- return hbrush;
- }
- else
- {
- return DefWindowProc(hWnd, message, wParam, lParam);
- }
- break;
-
- case WM_SYSCOLORCHANGE:
- return Ctl3dColorChange();
- break;
-
-
- Can someone please tell me why this isn't working?
-
- --
- % Randy Yates % "...the answer lies within your soul
- % EE/Mathematics Student % 'cause no one knows which side
- % University of South Florida % the coin will fall."
- % <yatesc@csee.usf.edu> % 'Big Wheels', *Out of the Blue*, ELO
-
-